import adminSupport from 'lola-admin-support-el'
const constants = adminSupport.lib.sysConstant
constants.banks = ['中国建设银行', '中国银行', '中国工商银行', '中国农业银行', '民生银行', '招商银行', '兴业银行', '支付宝', '微信']
constants.isBind = new Map(
  [
    ['All', { value: 'All', label: '全部', disabled: true, color: '' }],
    [0, { value: 0, label: '未绑定', color: '#F56C6C' }],
    [1, { value: 1, label: '已绑定', color: '#409EFF' }]
  ]
)
constants.locationType = new Map(
  [
    ['All', { value: 'All', label: '全部', disabled: true, color: '' }],
    [0, { value: 0, label: '纸厂', color: '#F56C6C' }],
    [1, { value: 1, label: '其他', color: '#409EFF' }]
  ]
)
constants.originType = new Map(
  [
    ['All', { value: 'All', label: '全部', disabled: true, color: '' }],
    [0, { value: 0, label: '采购', color: '#F56C6C' }],
    [1, { value: 1, label: '其他', color: '#409EFF' }]
  ]
)
constants.expensesExists = new Map(
  [
    ['All', { value: 'All', label: '全部', disabled: true, color: '' }],
    [0, { value: 0, label: '未创建', color: '#F56C6C' }],
    [1, { value: 1, label: '已创建', color: '#409EFF' }]
  ]
)
constants.logisticsOrderStatus = new Map(
  [
    [-1, { value: -1, label: '已作废', color: '#F56C6C' }],
    [0, { value: 0, label: '待审核', color: '#F56C6C' }],
    [1, { value: 1, label: '待发货', color: '#409EFF' }],
    [2, { value: 2, label: '已发货', color: '#409EFF' }],
    [3, { value: 3, label: '已收货', color: '#F56C6C' }],
    [4, { value: 4, label: '已定价', color: '#F56C6C' }],
    [5, { value: 5, label: '待收款', color: '#409EFF' }],
    [6, { value: 6, label: '已完成', color: '#F56C6C' }]
  ]
)
constants.logisticsOrderSuccessStatus = new Map(
  [
    [0, { value: 0, label: '待审核', color: '#F56C6C' }],
    [1, { value: 1, label: '待发货', color: '#409EFF' }],
    [2, { value: 2, label: '已发货', color: '#409EFF' }],
    [3, { value: 3, label: '已收货', color: '#F56C6C' }],
    [4, { value: 4, label: '已定价', color: '#F56C6C' }],
    [5, { value: 5, label: '待收款', color: '#409EFF' }],
    [6, { value: 6, label: '已完成', color: '#F56C6C' }]
  ]
)
constants.logisticsOrderErrorStatus = new Map(
  [
    [0, { value: 0, label: '待审核', color: '#F56C6C' }],
    [1, { value: 1, label: '待发货', color: '#409EFF' }],
    [-1, { value: -1, label: '已作废', color: '#F56C6C' }]
  ]
)
constants.costStatus = new Map(
  [
    [0, { value: 0, label: '待审核', color: '#F56C6C' }],
    [1, { value: 1, label: '待结算', color: '#409EFF' }],
    [2, { value: 2, label: '已完成', color: '#409EFF' }],
    [-1, { value: -1, label: '已作废', color: '#F56C6C' }]
  ]
)
constants.costSuccessStatus = new Map(
  [
    [0, { value: 0, label: '待审核', color: '#F56C6C' }],
    [1, { value: 1, label: '待结算', color: '#409EFF' }],
    [2, { value: 2, label: '已完成', color: '#409EFF' }]
  ]
)
constants.costErrorStatus = new Map(
  [
    [0, { value: 0, label: '待审核', color: '#F56C6C' }],
    [-1, { value: -1, label: '已作废', color: '#F56C6C' }]
  ]
)
constants.backCarStatus = new Map(
  [
    ['All', { value: 'All', label: '全部', color: '' }],
    ['W', { value: 'W', label: '待预定', color: '#F56C6C' }],
    ['Y', { value: 'Y', label: '已预订', color: '#409EFF' }],
    ['N', { value: 'N', label: '已过期', color: 'black' }]
  ]
)

constants.exerciseType = new Map(
  [
    [0, { value: 0, label: '往', color: '#F56C6C' }],
    [1, { value: 1, label: '返', color: '#409EFF' }],
    [2, { value: 2, label: '往返', color: '#409EFF' }]
  ]
)
constants.lineType = new Map(
  [
    [0, { value: 0, label: '直达', color: '#F56C6C' }],
    [1, { value: 1, label: '回头', color: '#409EFF' }]
  ]
)
constants.supOrderStatus = new Map(
  [
    ['All', { value: 'All', label: '全部', disabled: true, color: '' }],
    [0, { value: 0, label: '待审核', disabled: false, color: '#F56C6C', type: 'danger' }],
    [1, { value: 1, label: '已发货,待收货', disabled: false, color: '#409EFF', type: 'danger' }],
    [2, { value: 2, label: '已收货,待定价', disabled: false, color: '#409EFF', type: 'danger' }],
    [3, { value: 3, label: '已定价,待核算', disabled: false, color: '#409EFF', type: 'danger' }],
    [4, { value: 4, label: '已定价,待结算', disabled: false, color: '#409EFF', type: 'danger' }],
    [5, { value: 5, label: '已完成', disabled: false, color: '#67C23A', type: 'success' }],
    [6, { value: 6, label: '已取消', disabled: false, color: 'black', type: 'info' }],
    [7, { value: 7, label: '已退货', disabled: false, color: 'black', type: 'info' }],
    [8, { value: 8, label: '部分退货', disabled: false, color: 'black', type: 'info' }]
  ]
)
constants.ws = {
  LOGIN: 11002, // 登录
  PUSH_ORDER_CHANGE: 20000, // 订单变化
  PUSH_REQUEST: 11003 // 订阅
}
export default constants
